package priv.menguer.decorator.controller;

import priv.menguer.decorator.service.Shape;
import priv.menguer.decorator.service.impl.ShapeDecorator;

/**
 * @Title RedShapeDecorator.java
 * @description TODO
 * @time 2018年10月26日 上午10:09:09
 * @author menguer@126.com
 * @version 1.0
 */
public class RedShapeDecorator extends ShapeDecorator {

	public RedShapeDecorator(Shape decoratedShape) {
		super(decoratedShape);
	}

	@Override
	public void draw() {
		decoratedShape.draw();
		setRedBorder(decoratedShape);
	}

	private void setRedBorder(Shape decoratedShape) {
		System.out.println("Border Color: Red");
	}
}
